<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="/Blog/Public/Admin/Css/public.css" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
</head>
<body>
	<table class="table">
		<tr>
			<th>ID</th>
			<th>留言人姓名</th>
			<th>留言内容</th>
			<th>留言时间</th>
			<th>操作</th>
		</tr>		
			<?php if(is_array($words)): foreach($words as $key=>$v): ?><tr>
				<td><?php echo ($v["id"]); ?></td>
				<td><?php echo ($v["user"]); ?></td>				
				<td><?php echo ($v["content"]); ?></td>
				<td><?php echo (date('Y-m-d H:i',$v["time"])); ?></td>
				<td>					
					<a href="<?php echo U('Home/Bowen/delwords',array('id'=> $v['id'] ));?>">[删除留言]</a>					
				</td>
				</tr><?php endforeach; endif; ?>		
	</table>
</body>
</html>